<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimum-scale=1.0">
    <title>2048游戏</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            background-color: #faf8ef;
            margin: 0;
            padding: 20px;
        }
        #game {
            width: 100%;
            max-width: 450px;
            margin: 0 auto;
        }
        #board {
            display: grid;
            grid-template-columns: repeat(4, 100px);
            grid-template-rows: repeat(4, 100px);
            gap: 10px;
            background-color: #bbada0;
            padding: 10px;
            border-radius: 6px;
        }
        #board div {
            background-color: #cdc1b4;
            border-radius: 3px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 35px;
            font-weight: bold;
            color: #776e65;
        }
        #score-container {
            margin: 20px 0;
            font-size: 24px;
        }
    </style>
</head>
<body>
    <div id="game">
        <h1>2048</h1>
        <div id="score-container">分数: <span id="score">0</span></div>
        <div id="board"></div>
    </div>
    <script src="game.js"></script>
    <script>
        const game = new Game();
        game.start();
    </script>
</body>
</html>